/*!
 * SPDX-License-Identifier: Apache-2.0
 *
 * The OpenSearch Contributors require contributions made to
 * this file be licensed under the Apache-2.0 license or a
 * compatible open source license.
 *
 * Modifications Copyright OpenSearch Contributors. See
 * GitHub history for details.
 */

.ouiFilterSelectItem {
  @include ouiFontSizeS;
  @include ouiInteractiveStates;

  padding: $ouiSizeXS $ouiSizeM;
  display: block; // Necessary to make sure it doesn't force the whole popover to be too wide
  width: 100%;
  text-align: left;
  color: $ouiTextColor;
  border-bottom: $ouiBorderThin;
  border-color: darken($ouiColorLightestShade, 2%);
  outline-offset: -$ouiFocusRingSize;

  &:focus,
  &-isFocused {
    @include ouiFocusBackground;
    color: $ouiColorPrimary;
  }
}

.ouiFilterSelectItem__content {
  @include ouiTextTruncate;
}


.ouiFilterSelect__items {
  @include ouiScrollBar;

  overflow-y: auto;
  max-height: $ouiSize * 30;
}

.ouiFilterSelect__note {
  height: $ouiSize * 4;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.ouiFilterSelect__noteContent {
  color: $ouiColorDarkShade;
  font-size: $ouiFontSizeS;
}
